import { SPI, ViewWidget, TopBarService} from '@kunlun/dependencies'
import TabBarNameWidget  from './TabbarName.vue'
@SPI.ClassFactory(ViewWidget.Token({ widget: 'custom-view' }))
export class CustomViewWidget extends ViewWidget {
    public initialize(props) {
        super.initialize(props);
        this.setComponent(TabBarNameWidget);
        return this;
    }

    protected mounted(): void {
        TopBarService.getUserInfo().then( (result)=> {      
            console.log("CustomViewWidget", result)
        })
    }
}